Skip to content

Conversation

@aviatesk
Copy link
Member

@aviatesk aviatesk commented Oct 3, 2025

Allow function definitions with global and local declarations, enabling patterns like

let x = rand()
    global f() = x
end

Fixes #28.

Allow function definitions with `global` and `local` declarations,
enabling patterns like
```
let x = 1
    global f() = x
end
```

Fixes #28.
@mlechu
Copy link
Member

mlechu commented Oct 3, 2025

I think this is fixed by #87

@aviatesk
Copy link
Member Author

aviatesk commented Oct 8, 2025

Thanks for the reminder. Since JETLS doesn't support v1.13 yet, I might add this commit to jetls-hacking as a temporary fix. But let's close this PR.

@aviatesk aviatesk closed this Oct 8, 2025
@aviatesk aviatesk deleted the avi/fix-28 branch October 8, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fails to lower global func() = ... within let

2 participants